/*
 * Right.fx
 *
 * Created on Mar 2, 2009, 2:24:15 PM
 */

package hlequaliser;

/**
 * @author forsakendaemon
 */

import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;

public class Right extends CustomNode {

    public var x: Number = 0;
    public var y: Number = 0;
    public var masked: Boolean = false;

    public override function create(): Node {
        return Group {
            content: [
                Circle {
                    centerX: this.x;
                    centerY: this.y;
                    fill: if (masked) then Color.RED else Color.TRANSPARENT;
                    stroke: Color.RED;
                    radius: 4;
                }
            ]
        };
    }
}
